- /* srmdnchk.cpp by K.Tsuru */
- // function ID = 803 BRADIX
- /***********************
- SRational class
- It checks den > 0 or not.
- ************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- void SRational::DenCheck(){
- if(den.Sign(81) == 0 ) den.SetError(den.DIVIDED_BY_ZERO,"SR", 803);
- if(den.Sign() < 0){
- den.ChangeSign(); // den = -den
- num.ChangeSign(); // num = -num
- }
- if(den.IsOne()) reduceDone = true;
- }
srmdnchk.cpp : last modifiled at 2016/09/04 14:21:43(435 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:05 (Sun Sep 18 20:28:05 2016).